package com.lnsf.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.lnsf.dao.CommentsDao;
import com.lnsf.entity.Comments;


/*
 * ICommentService接口
 * author:黄华炎
 * 2017-07-26
 * 
 * 
 */

@Transactional
public interface ICommentService {
	
	//添加评论
	public void  saveComm(Comments comments);
	
	//获取个人的所有评论,通过用户id，商品id
	public List<Comments> findCommByUserAndGood(Comments comments);
	
	//根据评论Id获得Comments对象 
	public Comments findCommById(Integer commId);
	
	public int updateCom(int preCommId ,Comments currentComments);
	
}
